import { createRouter, createWebHashHistory } from "vue-router";

const routerHistory = createWebHashHistory()

const router = createRouter({
    history: routerHistory,
    routes: [
        {
            path: '/',
            redirect: '/home'
        },
        {
            path: '/login',
            name: 'login',
            component: () => import('../views/Login.vue')
        },
        {
            path: '/home',
            name: 'home',
            component: () => import('../views/Home.vue')
        },
        {
            path: '/detail',
            name: 'detail',
            component: () => import('../components/Detail.vue')
        }
    ]
})
export default router
